-- GENERATED SPELL FOR [Ekkorash the Inquisitor] --


function spell0_19493(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(11980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19493', 669, 1)
end

function spell1_19493(pUnit, Event) --@Fel Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(36040,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19493', 11000, 1)
end

function Sorts_19493(pUnit, Event)
local choix_sorts_19493 = math.random(0, 1)
if choix_sorts_19493 == 0 then
pUnit:RegisterEvent('spell0_19493', 1, 1)
end
if choix_sorts_19493 == 1 then
pUnit:RegisterEvent('spell1_19493', 1, 1)
end
end

function mob19493_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19493', math.random(1500, 3000), 1)
end

function mob19493_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19493_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19493_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19493, 1, 'mob19493_Action')
RegisterUnitEvent(19493, 2, 'mob19493_Leave')
RegisterUnitEvent(19493, 3, 'mob19493_Kill')
RegisterUnitEvent(19493, 4, 'mob19493_Die')
